home *** CD-ROM | disk | FTP | other *** search
- /* zLOCApp.c -- application methods */
- /* Created 10/17/91 4:10 PM by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, LOCApp. The 'z' prefix on this module marks */
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <CBartender.h>
- #include "ResourceDefs.h"
- #include "LOCDoc.h"
- #include "zLOCApp.h"
-
- extern OSType gSignature;
- extern CBartender *gBartender;
-
- /*----------*/
- void ZLOCApp::ILOCApp (void)
- {
- CApplication::IApplication (4, 20480L, 2048L);
-
- } /* ILOCApp */
-
- /*----------*/
- void ZLOCApp::SetUpMenus (void)
- {
- inherited::SetUpMenus ();
-
- gBartender->SetDimOption (FileID, dimNONE);
- gBartender->SetUnchecking (FileID, TRUE);
- gBartender->SetDimOption (128, dimNONE);
- gBartender->SetUnchecking (128, TRUE);
-
- } /* SetUpMenus */
-
- /*----------*/
- void ZLOCApp::CreateDocument (void)
- {
- CLOCDoc *theDocument;
-
- theDocument = new (CLOCDoc);
- theDocument->ILOCDoc (this, TRUE);
- theDocument->NewFile ();
-
- } /* CreateDocument */
-
- /*----------*/
- void ZLOCApp::OpenDocument (SFReply *macSFReply)
- {
- CLOCDoc *theDocument;
-
- theDocument = new (CLOCDoc);
- theDocument->ILOCDoc (this, TRUE);
- theDocument->OpenFile (macSFReply);
-
- } /* OpenDocument */
-
- /*----------*/
- void ZLOCApp::DoCommand (long theCommand)
- {
- switch (theCommand) {
- case cmdSelectFolder:
- /* handle SelectFolder choice; */
- break;
- case cmdBaselineMetrics:
- /* handle BaselineMetrics choice; */
- break;
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /* zLOCApp.c */
-